<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page import="java.util.List"%>
<%@ page import="org.limp.mine.StringTool"%>
<%@ page import="jt.classic.app.util.UserUtil"%>
<%@ page import="jt.classic.app.clgl.clsqd.*"%>
<%@ page import="jt.classic.app.clgl.clsqd.impl.*"%>
<%@ page import="jt.classic.app.clgl.clsqd.*"%>
<%
	String context = jt.classic.system.ISystem.getContextPath();
	//申请单对象
	IClsqdImpl clsqd = (IClsqdImpl) request.getAttribute("clsqd");
	//关联驾驶员及车辆数目
	int cl_jsy_num = clsqd.cl_jsy().size();
	//关联驾驶员及车辆 html
	String cl_jsy_list = clsqd.getCl_JSY_ListHtml();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>车辆指派</title>
</head>
<jsp:include page="../../head.jsp"></jsp:include>

<script>
	var cl_jsy_num=<%=cl_jsy_num%>;
</script>
<script language="javascript"
	src="<%=context%>/resources/common/js/dialog.js"></script>
<script src="<%=context%>/app/clgl/clsqd/js/myjs.js"></script>
<script src="<%=context%>/app/clgl/js/mycommon.js"></script>
<body onload="">
<form id="form1" name="form1" method="post"
	action="<%=context%>/app/clsqd.do?method=update"><input
	name="clsqd_id" class="box3" type="hidden" id="clsqd_id"
	value="<%=clsqd.clsqd_id()%>" />
<div>
<input type="button"
			class="button0" name="button0" value="指派车辆"
			onclick="javascript:add_cl_jsy();" /> <input type="button"
			class="button0" name="button0" value=" 保 存 "
			onclick="javascript:handleSubmit();" />
</div>
<fieldset>
<legend>车辆指派</legend>
<table class="tab4edit" width="800" align="center">
   <tr>
		<td valign="top" class="td1">&nbsp;指派车辆及驾驶员</td>
		<td id="fs_clsqd">
		<%
		out.print(cl_jsy_list);
		%>
		</td>
	</tr>
	<tr>
		<td width="150" class="td1">&nbsp;车单号</td>
		<td><label><input readonly name="clsqd_id" class="box3"
			type="text" id="clsqd_id" value="<%=clsqd.clsqd_id()%>" /></label></td>
	</tr>
	<tr>
		<td width="150" class="td1">&nbsp;用车单位</td>
		<td><label><input readonly name="clsqd_ycdw" class="box3"
			type="text" id="clsqd_ycdw" value="<%=clsqd.clsqd_ycdw()%>" /></label></td>
	</tr>
	<tr>
		<td width="150" class="td1">&nbsp;用车人</td>
		<td><label><input readonly name="clsqd_yxr" class="box3"
			type="text" id="clsqd_yxr" value="<%=clsqd.clsqd_yxr()%>" /></label></td>
	</tr>
	<tr>
		<td width="150" class="td1">&nbsp;电话</td>
		<td><label><input readonly name="clsqd_dh" class="box3"
			type="text" id="clsqd_dh" value="<%=clsqd.clsqd_dh()%>" /></label></td>
	</tr>
	<tr>
		<td width="150" class="td1">&nbsp;用车时间起</td>
		<td><label><input readonly name="clsqd_ycsjq"
			class="box3" type="text" id="clsqd_ycsjq"
			value="<%=clsqd.clsqd_ycsjq()%>" /></label></td>
	</tr>
	<tr>
		<td width="150" class="td1">&nbsp;用车时间止</td>
		<td><label><input readonly name="clsqd_ycsjz"
			class="box3" type="text" id="clsqd_ycsjz"
			value="<%=clsqd.clsqd_ycsjz()%>" /></label></td>
	</tr>
	<tr>
		<td width="150" class="td1">&nbsp;目的地</td>
		<td><label><input readonly name="clsqd_mdd" class="box3"
			type="text" id="clsqd_mdd" value="<%=clsqd.clsqd_mdd()%>" /></label></td>
	</tr>
	<tr>
		<td width="150" class="td1">&nbsp;出车时间</td>
		<td><label><input readonly name="clsqd_ccsj" class="box3"
			type="text" id="clsqd_ccsj" value="<%=clsqd.clsqd_ccsj()%>" /></label></td>
	</tr>
	<tr>
		<td width="150" class="td1">&nbsp;车辆数</td>
		<td><label><input readonly name="clsqd_cls" class="box3"
			type="text" id="clsqd_cls" value="<%=clsqd.clsqd_cls()%>" /></label></td>
	</tr>
	<tr style="display:none">
		<td width="151" class="td1">&nbsp;状态</td>
		<td><label><input readonly name="clsqd_zt" class="box3"
			type="text" id="clsqd_zt" value="2" /></label></td>
	</tr>
	<tr>
		<td width="152" class="td1">&nbsp;提交人</td>
		<td><label><input readonly name="clsqd_tjr" class="box3"
			type="text" id="clsqd_tjr" value="<%=clsqd.clsqd_tjr()%>" /></label></td>
	</tr>
	<tr>
		<td width="153" class="td1">&nbsp;备注</td>
		<td><label><input readonly name="clsqd_bz" class="box3"
			type="text" id="clsqd_bz" value="<%=clsqd.clsqd_bz()%>" /></label></td>
	</tr>
</table>
</fieldset>
</form>
</body>
</html>
